package com.test.chat.session;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

import io.netty.channel.Channel;

public class LocalSessionManager {
	
	private Map<String, Channel> channelStore = new ConcurrentHashMap<>();
	
	public void putSession(String username, Channel channel) {
		channelStore.put(username, channel);
	}
	
	public Channel getSession(String username) {
		return channelStore.get(username);
	}
	
	public void removeSession(String username) {
		channelStore.remove(username);
	}

}
